package com.app.service;

import com.app.model.PlantModel;
import com.app.util.Result;
import com.app.vo.NameAndValueVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.io.IOException;
import java.util.List;

public interface PlantService {


    PlantModel getPlantById(int id);

    Page<PlantModel> getPagePlantList(int page, int limit, List<Integer> idList, String model, String departmentName, Integer sortType);//阵地管理分页查询

//    List<RoleModel> getRoleListLikeName(String roleName);//根据角色名字筛选

    void update(PlantModel model);

    void insert(PlantModel model);

    void delete(int id);

    Integer plantCount(List<Integer> idsList);

    List<PlantModel> getStatisticsByIds(List<Integer> idList, String key);//首页统计

    List<PlantModel> getPlantByIds(List<Integer> idList);//根据阵地ID导出


    String insertPlant(List<PlantModel> data) throws IOException;

    Result<Object> deletePlantBatchByIds(String ids);

    List<NameAndValueVo> plantPieCount();
}
